<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>[%$ESPCMS_SOFT_TITLE%]</title>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_font_icon.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_public.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_all.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_framework.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_select.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/pageload.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery-ui.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.cookie.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_dialog.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/md5.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/json.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/bootstrap.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/lngpack_cn.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_form.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_formvalidation.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_dialog.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_function.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_tool.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_page.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_batch.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_tab.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/nprogress.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/iframeResizer.contentWindow.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_multiple.js"></script>
		<script type="text/javascript">
			$(document).ready(function () {
				banpageKey();
				$('input[type=checkbox],input[type=radio]').espcms_checkbox();
				$("[placeholder]").tooltip();
				$("#espcms_saveInfo").espcms_formvalidation({focusName: "#typename"});
				$('#espcms_saveInfo').ajaxForm({
					type: 'POST',
					url: '[%$link.save%]',
					dataType: 'json',
					beforeSubmit: function () {
						parent.espcms_are_loading();
					},
					success: function (data) {
						parent.$("#espcms_are_loading").dialog("close");
						parent.$("body").append(data.data);
						if (data.code === 'true') {
							parent.$.espcms_sticky(data.message, {'autoclose': 3000});
							parent.frames['[%$par_iframes_name%]'].refresh('ajax_list');
							parent.$(this).espcms_window_tab('close', {'iframeName': '[%$iframes_name%]'});
						} else {
							var botton = [
								{
									text: "[%pack:botton_pack-espcms_botton_colse%]",
									class: "btn btn-lightgray",
									click: function () {
										parent.$(this).dialog("close");
										parent.$(this).espcms_window_tab('close', {'iframeName': '[%$iframes_name%]'});
									}
								}
							];
							parent.espcms_public_dialog(data.domid_name, botton, 600);
						}
						$(window).unbind('beforeunload');
					}
				});
				$('.espcms_save_cancel').espcms_window_tab('closeTab');
				load_tabclick('.tab_click');
			});
		</script>
	</head>
	<body class="espcms_style_all">
		<div class="main">
			<div class="espcms_center_content_list">
				<div class="panel">
					<div class="panel-body form_bottom_page">
						<form class="form-horizontal admin-form" id="espcms_saveInfo" action="[%$link.save%]">
							<input type="hidden" name="token_key" id="token_key" value="[%$token.token_key%]"/>
							<input type="hidden" name="token_name" id="token_name" value="[%$token.token_name%]"/>
							<input type="hidden" name="mid" id="mid" value="[%$model_read.mid%]"/>
							<input type="hidden" name="aid" id="aid" value="[%$read.aid%]"/>
							<input type="hidden" name="savetype" value="edit"/>
							<div class="section-divider mb40"><span>[%pack:article_pack-espcms_article_model_attr_button_edit%]</span></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:article_pack-espcms_article_model_title%]</label>
								<div class="col-sm-9 pt7">[%$model_read.modelname%]</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:article_pack-espcms_article_model_attr_inputtype%]</label>
								<div class="col-sm-9 pt7">[%$read.formtypename%]</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:article_pack-espcms_article_model_attr_attrname%]</label>
								<div class="col-sm-9 pt7">[%$read.attrname%]</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:article_pack-espcms_article_model_attr_typename%]</label>
								<div class="col-sm-9">
									<input type="text" name="typename" class="form-control" id="typename" value="[%$read.typename%]" maxlength="50" data-validation-minlength="2" data-validation-maxlength="50" placeholder="[%pack:article_pack-espcms_article_model_attr_typename_title%]" title="[%pack:article_pack-espcms_article_model_attr_typename_title%]" data-validation-msg="[%pack:article_pack-espcms_article_model_attr_typename_validation_msg%]"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:article_pack-espcms_article_model_attr_typeremark%]</label>
								<div class="col-sm-9">
									<input type="text" name="typeremark" class="form-control" id="typeremark" value="[%$read.typeremark%]" maxlength="200" data-isvalidation="true" data-validation-minlength="2" data-validation-maxlength="150" placeholder="[%pack:article_pack-espcms_article_model_attr_typeremark_title%]" title="[%pack:article_pack-espcms_article_model_attr_typeremark_title%]" data-validation-msg="[%pack:article_pack-espcms_article_model_attr_typeremark_validation_msg%]"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:article_pack-espcms_article_model_attr_attrvalue%]</label>
								<div class="col-sm-9">
									<textarea class="form-control" style="width:100%;height:120px" name="attrvalue" id="attrvalue" data-validation-minlength="1" data-validation-maxlength="500" link-validation="inputtype" link-getvalue="select,radio,checkbox" link-gettype="text" placeholder="[%pack:article_pack-espcms_article_model_attr_attrvalue_title%]" title="[%pack:article_pack-espcms_article_model_attr_attrvalue_title%]" data-validation-msg="[%pack:article_pack-espcms_article_model_attr_attrvalue_validation_msg%]" >[%$read.attrvalue%]</textarea>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label"></label>
								<div class="col-sm-9"><span class="input_exp"> <span class="exp_icon espcms_icon_fa espcms_icon_fa-exclamation-circle" aria-hidden="true" ></span>[%pack:article_pack-espcms_article_model_attr_attrvalue_str%]</span></div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:article_pack-espcms_article_model_attr_attrrow%]</label>
								<div class="col-sm-5">
									<div class="input-group">
										<input type="text" name="attrrow" class="form-control" id="attrrow" value="[%$read.attrrow%]" data-validation="^[1-9]{1}[0-9]*$" placeholder="[%pack:article_pack-espcms_article_model_attr_attrrow_title%]" title="[%pack:article_pack-espcms_article_model_attr_attrrow_title%]" data-validation-msg="[%pack:article_pack-espcms_article_model_attr_attrrow_validation_msg%]" data-display-type="top" data-icon-err="false"/>
										<div class="input-group-addon">px</div>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label"></label>
								<div class="col-sm-9"><span class="input_exp"> <span class="exp_icon espcms_icon_fa espcms_icon_fa-exclamation-circle" aria-hidden="true" ></span>[%pack:article_pack-espcms_article_model_attr_attrrow_str%]</span></div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:article_pack-espcms_article_model_attr_isvalidate%]</label>
								<div class="col-sm-9 pt5">
									<input type="radio" name="isvalidate" id="isvalidate" class="tab_click" open_list=".isvalidate_div" value="1"[%if $read.isvalidate==1%] checked[%/if%]/><span class="pr10">[%pack:public_pack-espcms_lable_open_1%]</span>
									<input type="radio" name="isvalidate" id="isvalidate" class="tab_click" close_list=".isvalidate_div" value="0"[%if $read.isvalidate==0%] checked[%/if%]/><span class="pr10">[%pack:public_pack-espcms_lable_close%]</span>
								</div>
							</div>
							<div class="form-group isvalidate_div [%if $read.isvalidate==0%]displaynone[%/if%]">
								<label class="col-sm-2 control-label">[%pack:article_pack-espcms_article_model_attr_validatetext%]</label>
								<div class="col-sm-9">
									<input type="text" name="validatetext" class="form-control" id="validatetext" value="[%$read.validatetext%]" maxlength="200" data-validation-minlength="2" data-validation-maxlength="200" link-validation="isvalidate" link-gettype="radio" link-getvalue="1" placeholder="[%pack:article_pack-espcms_article_model_attr_validatetext_title%]" title="[%pack:article_pack-espcms_article_model_attr_validatetext_title%]" data-validation-msg="[%pack:article_pack-espcms_article_model_attr_validatetext_validation_msg%]"/>
								</div>
							</div>
							<div class="form-group isvalidate_div [%if $read.isvalidate==0%]displaynone[%/if%]">
								<label class="col-sm-2 control-label"></label>
								<div class="col-sm-9">
									<select class="selectpicker form-control" name="validatetext_select" data-size="8" title="[%pack:article_pack-espcms_article_model_attr_validatetext_select%]" onchange="javascript:$('#validatetext').val(this.value)">
										[%forlist from=$validate_list key=i%]
										<option value="[%$validate_list[i].value%]">[%$validate_list[i].name%]</option>
										[%/forlist%]
									</select>
								</div>
							</div>
							<div class="form-group isvalidate_div [%if $read.isvalidate==0%]displaynone[%/if%]">
								<label class="col-sm-2 control-label">[%pack:article_pack-espcms_article_model_attr_validate_str%]</label>
								<div class="col-sm-9">
									<input type="text" name="validate_str" class="form-control" id="validate_str" value="[%$read.validate_str%]" maxlength="150" data-validation-minlength="2" data-validation-maxlength="150" link-validation="isvalidate" link-gettype="radio" link-getvalue="1" placeholder="[%pack:article_pack-espcms_article_model_attr_validate_str_title%]" title="[%pack:article_pack-espcms_article_model_attr_validate_str_title%]" data-validation-msg="[%pack:article_pack-espcms_article_model_attr_validate_str_validation_msg%]"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:article_pack-espcms_article_model_attr_issearch%]</label>
								<div class="col-sm-9 pt5">
									<input type="radio" name="issearch" value="1"[%if $read.issearch==1%] checked[%/if%]/><span class="pr10">[%pack:public_pack-espcms_lable_open_1%]</span>
									<input type="radio" name="issearch" value="0"[%if $read.issearch==0%] checked[%/if%]/><span class="pr10">[%pack:public_pack-espcms_lable_close%]</span>
									<span class="input_exp"> <span class="exp_icon espcms_icon_fa espcms_icon_fa-exclamation-circle" aria-hidden="true" ></span>[%pack:article_pack-espcms_article_model_attr_issearch_title%]</span>
								</div>
							</div>
							<div class="form_button">
								<button type="submit" class="btn btn-green min-w-150" formmethod="POST">[%pack:botton_pack-espcms_botton_save_ok%]</button>
								<button type="button" class="btn btn-lightgray min-w-150 espcms_save_cancel">[%pack:botton_pack-espcms_botton_save_cancel_edit%]</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		[%link file="public/load.html"%]
		[%link file="public/load_height.html"%]
	</body>
</html>
